<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../include/top.jsp" %>
<%@ include file="../include/errorArea.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<script src="${baseURL}/js/calendar.js"></script>
</head>
<body>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" id="listOutTable">
	<input type="hidden" id="createTimeBegin" name="createTimeBegin" value="${createTimeBegin}"/>
	<input type="hidden" id="createTimeEnd"  name="createTimeEnd" value="${createTimeEnd}"></input>
  <tr>
    <td colspan="2" align="left" valign="middle" class="text_gray2"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#96bee2">
      <tr>
        <td height="21" background="${baseURL}/images/table_bg.jpg">&nbsp;&nbsp;</td>
      </tr>
      <tr>
        <td height="13" valign="top" bgcolor="#FFFFFF">
        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" id="listTable">
			<tr align="center" bgcolor="#eeeeee">
				<td width="30%">商品分成</td>
				<td width="30%">物业服务费</td>
				<td width="30%">派送费</td>
				<td width="10%">操作</td>
			</tr>
			<tr align="center">
				<td>${spfcCount}</td>
				<td>${spCount}</td>
				<td>${yfCount}</td>
				<td><a href="#" onclick="goodsOrderDetail();">查看</a></td>
			</tr>
        </table>
        </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="1" colspan="2" bgcolor="#A6CAE8"></td>
  </tr>
  <tr>
    <td height="1" colspan="2" bgcolor="#A6CAE8"></td>
  </tr>
</table>
<script>
	function goodsOrderDetail(){
		var createTimeBegin = $("#createTimeBegin").val();
		var createTimeEnd = $("#createTimeEnd").val();
		$.layer({
		    type: 2,
		    maxmin: true,
		    shadeClose: true,
		    title: '商品明细',
		    shade: [0.1,'#fff'],
		    offset: [($(window).height() / 30)+'px',''],
		    area: ['900px', '400px'],
		    iframe: {src: '${ctx}/caiwu/getSpsrList/' + createTimeBegin + '/' + createTimeEnd}
		}); 
	}
</script>
</body>
</html>